# $OpenBSD: Makefile,v 1.10 2017/04/10 11:45:27 sthen Exp $

COMMENT =	Python binding for the Scintilla source code editor

VERSION =	2.9.3
DISTNAME =	QScintilla_gpl-${VERSION}
PKGNAME =	py-qscintilla-${VERSION}
CATEGORIES =	editors x11 devel

HOMEPAGE =	http://www.riverbankcomputing.com/software/qscintilla/

# GPLv2/GPLv3
PERMIT_PACKAGE_CDROM =	Yes

MASTER_SITES =  ${MASTER_SITE_SOURCEFORGE:=pyqt/}

MODULES = lang/python x11/qt4

BUILD_DEPENDS =	${RUN_DEPENDS}
RUN_DEPENDS = devel/py-sip \
		x11/py-qt4 \
		x11/dbus-python
LIB_DEPENDS = editors/qscintilla

WANTLIB += ICE QtGui SM X11 Xext Xi Xinerama Xrender fontconfig
WANTLIB += freetype m qscintilla2 ${LIBCXX} pthread

WRKSRC =	${WRKDIST}/Python

NO_TEST =	Yes

CONFIGURE_STYLE = simple
CONFIGURE_SCRIPT =	${MODPY_BIN} ${WRKSRC}/configure.py
CONFIGURE_ARGS = --qmake=${LOCALBASE}/bin/qmake4 \
		--qsci-libdir=${LOCALBASE}/lib \
		--pyqt-sipdir=${LOCALBASE}/share/sip

MAKE_ENV =	INSTALL_ROOT="${WRKINST}"

.include <bsd.port.mk>
